package com.molin.IOtest.charstreamTest;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Demo4 {
    public static void main(String[] args) throws IOException {
        String path="D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\charstreamTest\\a.txt";
        FileReader fr=new FileReader(path);

        int ch;

        while ((ch=fr.read())!=-1){
            System.out.println((char)ch);
        }
        fr.close();
    }
}
